<a href='https://github.com/angular/angular.js/edit/v1.3.x/src/ng/directive/a.js?message=docs(a)%3A%20describe%20your%20change...#L3' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>



<a href='https://github.com/angular/angular.js/tree/v1.3.13/src/ng/directive/a.js#L3' class='view-source pull-right btn btn-primary'>
  <i class="glyphicon glyphicon-zoom-in">&nbsp;</i>View Source
</a>


<header class="api-profile-header">
  <h1 class="api-profile-header-heading">a</h1>
  <ol class="api-profile-header-structure naked-list step-list">
    
    <li>
      - directive in module <a href="api/ng">ng</a>
    </li>
  </ol>
</header>



<div class="api-profile-description">
  <p>Modifies the default behavior of the html A tag so that the default action is prevented when
the href attribute is empty.</p>
<p>This change permits the easy creation of action links with the <code>ngClick</code> directive
without changing the location or causing page reloads, e.g.:
<code>&lt;a href=&quot;&quot; ng-click=&quot;list.addItem()&quot;&gt;Add Item&lt;/a&gt;</code></p>

</div>




<div>
  

  
  <h2>Directive Info</h2>
  <ul>
    
    <li>This directive executes at priority level 0.</li>
  </ul>

  
  <h2 id="usage">Usage</h2>
  <div class="usage">
  
    <ul>
    
      <li>as element:
      
      <pre><code>&lt;a&gt;&#10;...&#10;&lt;/a&gt;</code></pre>
      </li>
    
  </div>
  
  


  
</div>


